package MainClass;


public class Scheduler extends Thread
{
	 Game game;

	  public Scheduler()
	  {
	    this.game = Game.GameBuilder();
	  } // Updater
	  
	 public void run()
	 {
		 int i=0;
	 while(true)
	 {
	   synchronized(game)
	    {
		   game.notify();
	    }// synchronized(grec)
	   
	    try
	    {   
	        //Thread.currentThread();
			Thread.sleep(100);
	    } // try
	    catch (InterruptedException e)
	    {
	     System.out.println("Exception: " + e.getMessage());
	     System.out.println("Scheduler " + i++);
	    } // catch 
	  } // while
	 } // run 
}
